
set CURRENT_DIR=%cd%
set UMD_RELEASE_DIR=%CURRENT_DIR%\svga\umd\umd\ARM64EC\Release\
set UMD_RELEASE_WIN32_DIR=%CURRENT_DIR%\svga\umd\umd\Release\
SET KMD_RELEASE_DIR=%CURRENT_DIR%\svga\kmd\ARM64\Release

mkdir %UMD_RELEASE_DIR%
mkdir %KMD_RELEASE_DIR%\wddm\

cd %CURRENT_DIR%\svga\umd\umd\
msbuild umd.sln /p:Platform="ARM64EC" /p:Configuration=release  -fileLoggerParameters:Verbosity=diag;LogFile=%cd%\Build_Win10_ARM64_svga_umd.log
msbuild umd.sln /p:Platform="x86" /p:Configuration=release  -fileLoggerParameters:Verbosity=diag;LogFile=%cd%\Build_Win10_ARM64_svga_umd.log

del /f /s /q %KMD_RELEASE_DIR%\VboxDispD3D-ARM64EC.dll
xcopy %UMD_RELEASE_DIR%\VboxDispD3D-ARM64EC.dll %KMD_RELEASE_DIR%\wddm\

del /f /s /q %KMD_RELEASE_DIR%\VboxDispD3D-Win32.dll
xcopy %UMD_RELEASE_WIN32_DIR%\VboxDispD3D-Win32.dll %KMD_RELEASE_DIR%\wddm\

del /f /s /q %KMD_RELEASE_DIR%\VBoxDX-ARM64EC.dll
xcopy %UMD_RELEASE_DIR%\VBoxDX-ARM64EC.dll %KMD_RELEASE_DIR%\wddm\

del /f /s /q %KMD_RELEASE_DIR%\VBoxDX.dll
xcopy %UMD_RELEASE_DIR%\VBoxDX.dll %KMD_RELEASE_DIR%\wddm\

del /f /s /q %KMD_RELEASE_DIR%\VBoxDX-Win32.dll
xcopy %UMD_RELEASE_WIN32_DIR%\VBoxDX-Win32.dll %KMD_RELEASE_DIR%\wddm\

del /f /s /q %KMD_RELEASE_DIR%\VboxNine-ARM64EC.dll
xcopy %UMD_RELEASE_DIR%\VboxNine-ARM64EC.dll %KMD_RELEASE_DIR%\wddm\

del /f /s /q %KMD_RELEASE_DIR%\VboxNine-Win32.dll
xcopy %UMD_RELEASE_WIN32_DIR%\VboxNine-Win32.dll %KMD_RELEASE_DIR%\wddm\

del /f /s /q %KMD_RELEASE_DIR%\VboxSVGA-ARM64EC.dll
xcopy %UMD_RELEASE_DIR%\VboxSVGA-ARM64EC.dll %KMD_RELEASE_DIR%\wddm\

del /f /s /q %KMD_RELEASE_DIR%\VboxSVGA-Win32.dll
xcopy %UMD_RELEASE_WIN32_DIR%\VboxSVGA-Win32.dll %KMD_RELEASE_DIR%\wddm\

cd %CURRENT_DIR%\svga\kmd
msbuild kmd.sln /p:Platform="ARM64" /p:Configuration=release  -fileLoggerParameters:Verbosity=diag;LogFile=%cd%\Build_Win10_ARM64_svga_kmd.log
